import Vue from 'vue'
import App from './App'
import store from '@/store';

import {to_link,to_switch,to_redirect,to_back,msg,loading,previewImage} from './common/function/system_fun.js'
import API from './common/config/api.js'

Vue.prototype.$m = {to_link,to_switch,to_redirect,to_back,msg,loading,previewImage}
Vue.prototype.$http = API

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore)

const app = new Vue({
	store,
    ...App
})
app.$mount()
